package com.ph.shopping.facade.customfactory.facade;

import java.util.Map;

import com.ph.shopping.facade.customfactory.CustomBeanRule;

/**
 * 
* @ClassName: ICustomBeanFactory  
* @Description: ICustomBeanFactory
* @author lijie  
* @date 2017年3月15日  
*  
* @param <A>
 */
public interface ICustomBeanFactory<A extends CustomBeanRule>{

	/**
	 * 
	* @Title: generateAppointBean  
	* @Description: 将bean 转换成指定的bean  
	* @param @param customBean
	* @param @param clas
	* @param @return
	* @param @throws Exception    参数  
	* @return T    返回类型  
	* @throws
	 */
	 <T> T generateAppointBean(A customBean,Class<T> clas) throws Exception;
	 
	 /**
	  * 
	 * @Title: beanToMap  
	 * @Description: 将bean 转换成map 
	 * @param @param obj
	 * @param @return    参数  
	 * @return Map<String,Object>    返回类型  
	 * @throws
	  */
	 Map<String, Object> beanToMap(Object obj) throws Exception;
}
